package pack0831.demo;

public class Down extends Thread{
    private Bridge bridge;

    public Down(Bridge bridge) {
        this.bridge = bridge;
    }

    @Override
    public void run() {
        for (int i = 1; i<16; i++){
            Person person = bridge.down();
            System.out.println(person+"下桥了");
            try {
                sleep(2000);
            }catch (Exception e){}
        }
    }
}
